package com.wish.g04.business.service;

import com.wish.g04.base.entity.Business;
import com.wish.g04.business.dto.BusinessDTO;
import com.wish.g04.business.dto.UserDTO;
import com.wish.g04.business.vo.BusinessVO;
import com.wish.g04.common.core.web.domain.AjaxResult;
import com.wish.g04.common.core.web.page.TableDataInfo;

import java.util.List;

public interface BusinessService {


    /**
     * 商户列表
     * @return
     */
    TableDataInfo getBusinessList();


    /**
     * 根据id查询商户
     * @param id
     * @return
     */
    BusinessVO selectTbBusinessById(Long id);

    /**
     * 审核
     * @param business
     * @return
     */
    void notUpdateBusiness(Business business);

    /**
     * 查询商户
     * @param id
     * @return
     */
    Business getById(Long id);

    /**
     * 审核通过
     * @param businessDTO
     * @return
     */
    AjaxResult update(BusinessDTO businessDTO);

    /**
     * 注册
     * @param userDTO
     * @return
     */
    AjaxResult register(UserDTO userDTO);

    /**
     * 获取城市
     * @return
     */
    AjaxResult getCityList();

    /**
     * 添加商户
     * @param businessDTO
     * @return
     */
    AjaxResult save(BusinessDTO businessDTO);
}
